From: Jim Blandy Date: Thu, 20 May 1993 23:30:21 +0000 (+0000) Subject: * dispnew.c (preserve_other_columns): Remember to multiply the X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1^2~5^2~96130 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=aec9f5f6dc0815d689cb63ca7be7587c5d7abacd;p=emacs.git * dispnew.c (preserve_other_columns): Remember to multiply the size argument to bcopy by the size of a glyph. --- diff --git a/src/dispnew.c b/src/dispnew.c index 30e1706a720..fe132f1a0da 100644 --- a/src/dispnew.c +++ b/src/dispnew.c @@ -747,7 +747,8 @@ preserve_other_columns (w) int len; bcopy (current_frame->glyphs[vpos], - desired_frame->glyphs[vpos], start); + desired_frame->glyphs[vpos], + start * sizeof (current_frame->glyphs[vpos])); len = min (start, current_frame->used[vpos]); if (desired_frame->used[vpos] < len) desired_frame->used[vpos] = len; @@ -760,7 +761,8 @@ preserve_other_columns (w) = SPACEGLYPH; bcopy (current_frame->glyphs[vpos] + end, desired_frame->glyphs[vpos] + end, - current_frame->used[vpos] - end); + ((current_frame->used[vpos] - end) + * sizeof (current_frame->glyphs[vpos]))); desired_frame->used[vpos] = current_frame->used[vpos]; } }